home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #4
/
Amiga Plus CD - 2000 - No. 4.iso
/
Tools
/
Text
/
Misc
/
TextloaderTNG
/
Rexx
/
For_ScanQuix
/
Imagemaster
/
rxpi
/
ScanImage.rexx
Wrap
OS/2 REXX Batch file
|
1999-03-03
|
2KB
|
79 lines
/* $VER: ScanImage.rexx 1.5 (14.09.96) for ImageMaster R/T V1.x © by Jochen Grus */
/* WHY is this Version 1.5? Na, weil es so schön ist...*/
/* IMPORTANT !!! SET THE PATH TO RAM: (IM - Setup Picture path) */
parse arg fullname
call pragma('stack',20000);
if ~show('L',"rexxsupport.library") then do
if ~addlib('rexxsupport.library',0,-30,0) then do
say "Hey Stupid we have a big fuckin problem! (KICHER)";
say 'We have also a Library Problem, Unable To Load "rexxsupport.library"';
say 'Cannot operate PI Modules without this library - ARSCH!';
'finish';
exit 10;
end;
end;
prtnme = 'IP_Port'; /* assume Image Professional */
if show('P','IP_Port') = 0 then do
if show('P','IM_Port') = 0 then do
say "We have another fuckin big problem!";
say "Can't find image processor's ARexx port!!!"; /* not running? Idiot */
say "This script requires ScanQuix3, IP, IM or IM F/c and a Scanner to run!";
exit(20);
end;
else do
prtnme = 'IM_Port';
end;
end;
options failat 25 /* ScanToDisk returns 0 or 20 */
ok=1
call SCAN() /* Scans the image into a temporary file */
call IMPORTGRAPHIC() /* Loads Image into ImageMaster R/T */
call DELETEFILE() /* Removes temporary image file */
EXIT
SCAN:
/* Scans the image into a temporary file using the program "ScanToDisk". */
/* IMPORTANT !!! You should scan only Porno-Pictures !!! Hechel */
if not 1=open('path','ENV:ScanQuix/Path','READ') then do
ok=0
return
end
pragma('DIRECTORY',READLN('path'))
address command 'ScanQuix3/ScanToDisk FILE="Ram:ScanImage" TRUECOLOR NOICONS NOGUI'
if RC>=5 then do
ok=0
return
end
return
'imtofront';
IMPORTGRAPHIC:
/* Loads the image into ImageMaster R/T ...GOIL*/
address(prtnme);
options results;
forcefront
say "Da wird ja ein Goiles Bildchen eingescannt...";
'load ScanImage' /* Nochmals für alle IDIOTEN !!! Der Pfad muß RAM: sein!!! (IM - Setup - Picture path) */
if ok=0 then
return
return
DELETEFILE:
/* removes temporary file ...Uiiijuiiijuiii */
address command 'delete ram:ScanImage'
return